<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>运行时配置</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="sybase.installation.html">安装</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="sybase.resources.html">资源类型</a></div>
 <div class="up"><a href="sybase.setup.html">安装／配置</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="sybase.configuration" class="section">
 <h2 class="title">运行时配置</h2>
 <p class="simpara">
这些函数的行为受 <var class="filename">php.ini</var> 中的设置影响。
</p>
 <p class="para">
 <table class="doctable table">
  <caption><strong>Sybase configuration options</strong></caption>
  
   <thead>
    <tr>
     <th>名字</th>
     <th>默认</th>
     <th>可修改范围</th>
     <th>更新日志</th>
    </tr>

   </thead>

   <tbody class="tbody">
    <tr>
     <td><a href="sybase.configuration.html#ini.sybase.allow-persistent" class="link">sybase.allow_persistent</a></td>
     <td>&quot;1&quot;</td>
     <td>PHP_INI_ALL</td>
     <td>PHP_INI_ALL in PHP &lt;= 4.0.2. PHP_INI_SYSTEM in PHP &lt;= 4.0.3.</td>
    </tr>

    <tr>
     <td><a href="sybase.configuration.html#ini.sybase.max-persistent" class="link">sybase.max_persistent</a></td>
     <td>&quot;-1&quot;</td>
     <td>PHP_INI_ALL</td>
     <td>PHP_INI_ALL in PHP &lt;= 4.0.2. PHP_INI_SYSTEM in PHP &lt;= 4.0.3.</td>
    </tr>

    <tr>
     <td><a href="sybase.configuration.html#ini.sybase.max-links" class="link">sybase.max_links</a></td>
     <td>&quot;-1&quot;</td>
     <td>PHP_INI_ALL</td>
     <td>PHP_INI_ALL in PHP &lt;= 4.0.2. PHP_INI_SYSTEM in PHP &lt;= 4.0.3.</td>
    </tr>

    <tr>
     <td>sybase.interface_file</td>
     <td>&quot;/usr/sybase/interfaces&quot;</td>
     <td>PHP_INI_SYSTEM</td>
     <td class="empty">&nbsp;</td>
    </tr>

    <tr>
     <td><a href="sybase.configuration.html#ini.sybase.min-error-severity" class="link">sybase.min_error_severity</a></td>
     <td>&quot;10&quot;</td>
     <td>PHP_INI_ALL</td>
     <td class="empty">&nbsp;</td>
    </tr>

    <tr>
     <td><a href="sybase.configuration.html#ini.sybase.min-message-severity" class="link">sybase.min_message_severity</a></td>
     <td>&quot;10&quot;</td>
     <td>PHP_INI_ALL</td>
     <td class="empty">&nbsp;</td>
    </tr>

    <tr>
     <td>sybase.compatability_mode</td>
     <td>&quot;0&quot;</td>
     <td>PHP_INI_ALL</td>
     <td class="empty">&nbsp;</td>
    </tr>

    <tr>
     <td><a href="sybase.configuration.html#ini.magic-quotes-sybase" class="link">magic_quotes_sybase</a></td>
     <td>&quot;0&quot;</td>
     <td>PHP_INI_ALL</td>
     <td>Deprecated in PHP 5.3.0. Removed in PHP 5.4.0.</td>
    </tr>

   </tbody>
  
 </table>

 </p>
 
 <p class="para">这是配置指令的简短说明。</p>
 
 <p class="para">
 <dl>

  
  
   <dt id="ini.sybase.allow-persistent">
    <em><code class="parameter">sybase.allow_persistent</code></em>
    <span class="type"><a href="language.types.boolean.html" class="type boolean">boolean</a></span>
   </dt>

   <dd>

    <p class="para">
     Whether to allow persistent Sybase connections.
    </p>
   </dd>

  
  
  
   <dt id="ini.sybase.max-persistent">
    <em><code class="parameter">sybase.max_persistent</code></em>
    <span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>
   </dt>

   <dd>

    <p class="para">
     The maximum number of persistent Sybase connections per
     process. -1 means no limit.
    </p>
   </dd>

  
  
  
   <dt id="ini.sybase.max-links">
    <em><code class="parameter">sybase.max_links</code></em>
    <span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>
   </dt>

   <dd>

    <p class="para">
     The maximum number of Sybase connections per process,
     including persistent connections. -1 means no limit.
    </p>
   </dd>

  
  
  
   <dt id="ini.sybase.min-error-severity">
    <em><code class="parameter">sybase.min_error_severity</code></em>
    <span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>
   </dt>

   <dd>

    <p class="para">
     Minimum error severity to display.
    </p>
   </dd>

  
  
  
   <dt id="ini.sybase.min-message-severity">
    <em><code class="parameter">sybase.min_message_severity</code></em>
    <span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>
   </dt>

   <dd>

    <p class="para">
     Minimum message severity to display.
    </p>
   </dd>

  
  
  
   <dt id="ini.magic-quotes-sybase">
    <em><code class="parameter">magic_quotes_sybase</code></em>
    <span class="type"><a href="language.types.boolean.html" class="type boolean">boolean</a></span>
   </dt>

   <dd>

    <p class="para">
     If <em><code class="parameter">magic_quotes_sybase</code></em> is on, a
     single-quote is escaped with a single-quote instead of a
     backslash if <a href="info.configuration.html#ini.magic-quotes-gpc" class="link">magic_quotes_gpc</a>
     or <a href="info.configuration.html#ini.magic-quotes-runtime" class="link">magic_quotes_runtime</a>
     are enabled.
     This setting is also respected by <span class="function"><a href="function.addslashes.html" class="function">addslashes()</a></span> and
     <span class="function"><a href="function.stripslashes.html" class="function">stripslashes()</a></span>.
    </p>
    <blockquote class="note"><p><strong class="note">Note</strong>: 
     <p class="para">
      Note that when <em><code class="parameter">magic_quotes_sybase</code></em>
      is ON it completely overrides <em><code class="parameter">magic_quotes_gpc
      </code></em>.  In this case even when 
      <em><code class="parameter">magic_quotes_gpc</code></em> is enabled
      neither double quotes, backslashes or NUL&#039;s
      will be escaped.
     </p>
    </p></blockquote>
    <div class="warning"><strong class="warning">Warning</strong><p class="simpara">本特性已自
PHP 5.3.0 起<em class="emphasis">废弃</em>并将自 PHP 5.4.0
起<em class="emphasis">移除</em>。</p></div>
   </dd>

  

 </dl>

 </p>

 <p class="para">
 <table class="doctable table">
  <caption><strong>Sybase-CT configuration options</strong></caption>
  
   <thead>
    <tr>
     <th>名字</th>
     <th>默认</th>
     <th>可修改范围</th>
     <th>更新日志</th>
    </tr>

   </thead>

   <tbody class="tbody">
    <tr>
     <td><a href="sybase.configuration.html#ini.sybct.allow-persistent" class="link">sybct.allow_persistent</a></td>
     <td>&quot;1&quot;</td>
     <td>PHP_INI_SYSTEM</td>
     <td>PHP_INI_ALL in PHP &lt;= 4.0.2. Available since PHP 4.0.2. Removed in PHP 4.0.3.</td>
    </tr>

    <tr>
     <td><a href="sybase.configuration.html#ini.sybct.max-persistent" class="link">sybct.max_persistent</a></td>
     <td>&quot;-1&quot;</td>
     <td>PHP_INI_SYSTEM</td>
     <td>PHP_INI_ALL in PHP &lt;= 4.0.2. Available since PHP 4.0.2. Removed in PHP 4.0.3.</td>
    </tr>

    <tr>
     <td><a href="sybase.configuration.html#ini.sybct.max-links" class="link">sybct.max_links</a></td>
     <td>&quot;-1&quot;</td>
     <td>PHP_INI_SYSTEM</td>
     <td>PHP_INI_ALL in PHP &lt;= 4.0.2. Available since PHP 4.0.2. Removed in PHP 4.0.3.</td>
    </tr>

    <tr>
     <td><a href="sybase.configuration.html#ini.sybct.min-server-severity" class="link">sybct.min_server_severity</a></td>
     <td>&quot;10&quot;</td>
     <td>PHP_INI_ALL</td>
     <td>Available since PHP 4.0.2. Removed in PHP 4.0.3.</td>
    </tr>

    <tr>
     <td><a href="sybase.configuration.html#ini.sybct.min-client-severity" class="link">sybct.min_client_severity</a></td>
     <td>&quot;10&quot;</td>
     <td>PHP_INI_ALL</td>
     <td>Available since PHP 4.0.2. Removed in PHP 4.0.3.</td>
    </tr>

    <tr>
     <td><a href="sybase.configuration.html#ini.sybct.hostname" class="link">sybct.hostname</a></td>
     <td>NULL</td>
     <td>PHP_INI_ALL</td>
     <td>Available since PHP 4.0.2. Removed in PHP 4.0.3.</td>
    </tr>

    <tr>
     <td><a href="sybase.configuration.html#ini.sybct.deadlock-retry-count" class="link">sybct.deadlock_retry_count</a></td>
     <td>&quot;0&quot;</td>
     <td>PHP_INI_ALL</td>
     <td>Available since PHP 4.3.0.</td>
    </tr>

   </tbody>
  
 </table>

 </p>
 
 <p class="para">这是配置指令的简短说明。</p>
 
 <p class="para">
  <dl>

   
   
    <dt id="ini.sybct.allow-persistent">
     <em><code class="parameter">sybct.allow_persistent</code></em>
     <span class="type"><a href="language.types.boolean.html" class="type boolean">boolean</a></span>
    </dt>

    <dd>

     <p class="para">
      Whether to allow persistent Sybase-CT connections.
      The default is on.
     </p>
    </dd>

   
   
   
    <dt id="ini.sybct.max-persistent">
     <em><code class="parameter">sybct.max_persistent</code></em>
     <span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>
    </dt>

    <dd>

     <p class="para">
      The maximum number of persistent Sybase-CT connections per
      process. The default is -1 meaning unlimited.
     </p>
    </dd>

   
   
   
    <dt id="ini.sybct.max-links">
     <em><code class="parameter">sybct.max_links</code></em>
     <span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>
    </dt>

    <dd>

     <p class="para">
      The maximum number of Sybase-CT connections per process,
      including persistent connections. The default is -1 meaning
      unlimited.
     </p>
    </dd>

   
   
   
    <dt id="ini.sybct.min-server-severity">
     <em><code class="parameter">sybct.min_server_severity</code></em>
     <span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>
    </dt>

    <dd>

     <p class="para">
      Server messages with severity greater than or equal to
      sybct.min_server_severity will be reported as warnings. This
      value can also be set from a script by calling
      <span class="function"><a href="function.sybase-min-server-severity.html" class="function">sybase_min_server_severity()</a></span>. The default
      is 10 which reports errors of information severity or greater.
     </p>
    </dd>

   
   
   
    <dt id="ini.sybct.min-client-severity">
     <em><code class="parameter">sybct.min_client_severity</code></em>
     <span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>
    </dt>

    <dd>

     <p class="para">
      Client library messages with severity greater than or equal to
      sybct.min_client_severity will be reported as warnings. This
      value can also be set from a script by calling
      <span class="function"><a href="function.sybase-min-client-severity.html" class="function">sybase_min_client_severity()</a></span>.  The default
      is 10 which effectively disables reporting.
     </p>
    </dd>

   
   
     
      <dt id="ini.sybct.login-timeout">
       <em><code class="parameter">sybct.login_timeout</code></em>
       <span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>
      </dt>

      <dd>

       <p class="para">
        The maximum time in seconds to wait for a connection attempt
        to succeed before returning failure.  Note that if
        max_execution_time has been exceeded when a connection attempt
        times out, your script will be terminated before it can take
        action on failure.  The default is one minute.
       </p>
      </dd>

     
     
     
      <dt id="ini.sybct.timeout">
       <em><code class="parameter">sybct.timeout</code></em>
       <span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>
      </dt>

      <dd>

       <p class="para">
        The maximum time in seconds to wait for a select_db or query
        operation to succeed before returning failure.  Note that if
        max_execution_time has been exceeded when an operation times
        out, your script will be terminated before it can take action
        on failure.  The default is no limit.
       </p>
      </dd>

     

   
    <dt id="ini.sybct.hostname">
     <em><code class="parameter">sybct.hostname</code></em>
     <span class="type"><a href="language.types.string.html" class="type string">string</a></span>
    </dt>

    <dd>

     <p class="para">
      The name of the host you claim to be connecting from, for
      display by sp_who. The default is none.
     </p>
    </dd>

   
   
   
    <dt id="ini.sybct.deadlock-retry-count">
     <em><code class="parameter">sybct.deadlock_retry_count</code></em>
     <span class="type"><a href="language.types.integer.html" class="type int">int</a></span>
    </dt>

    <dd>

     <p class="para">
      Allows you to define how often deadlocks are to be retried. The default
      is 0, value -1 means &quot;forever&quot;.
     </p>
    </dd>

   
   
  </dl>

 </p>
 <p class="para">
  有关 PHP_INI_* 样式的更多详情与定义，见 <a href="configuration.changes.modes.html" class="xref">配置可被设定范围</a>。
 </p>

</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="sybase.installation.html">安装</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="sybase.resources.html">资源类型</a></div>
 <div class="up"><a href="sybase.setup.html">安装／配置</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
